package com.xbongbong.pro.workorder.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.paas.toolbox.wrap.QueryIgnore;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @author long.rao
 * @version v1.0
 * @date 2019/8/16 20:02
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class WarehouseOriDeleteBatchDTO extends BaseDTO {
    private static final long serialVersionUID = 3818190464165112867L;

    @NotNull(message = "{dto.msg.quotationDeleteBatch.dataIdList.NotNull}")
    @Size(max = 1)
    private List<Long> dataIdList;

    /**
     * 1 为单个删除 0 为 批量删除 其他情况默认批量删除处理
     */
    private Integer singleFlag;
    /**
     * 是否是从业务规则来的 1：是
     */
    @Getter(onMethod_ = {@QueryIgnore})
    private Integer isBusinessRule;
}
